package org.locker.domain.bo;

import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.locker.domain.Repair;

/**
 * 报修业务对象 lk_repair
 *
 * @author winnie
 * @date 2023-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Repair.class, reverseConvertGenerate = false)
public class RepairBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型: 串口超时:serial_timeout,离线:offline,屏幕失灵:screen_failure,其它:other
     */
    @NotBlank(message = "类型", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 设备号
     */
    @NotBlank(message = "设备号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceNo;

    /**
     * 柜子id
     */
    private Long deviceGridId;

    /**
     * 状态：pending 待处理,in_progress 处理中,resolved 已处理,
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
